home *** CD-ROM | disk | FTP | other *** search
- property tix, tixV, zP, mmV, horseSprite, firstSwitch
- global gmObject
-
- on beginSprite me
- firstSwitch = 0
- gmObject.backCounter = 30
- horseSprite = gmObject.horseSprites[4]
- horseSprite.frame = 1
- play frame horseSprite
- tixV = 4
- tix = the ticks + tixV
- end
-
- on exitFrame me
- if firstSwitch = 0 then
- firstSwitch = 1
- if (gmObject.stopSprite <> sprite(52)) and (gmObject.stopSprite <> sprite(53)) then
- gmObject.makeStopSymbol()
- end if
- else
- if (horseSprite.playing = 0) and (soundBusy(1) = 0) then
- if (gmObject.tiredHorse = 0) and (gmObject.backIsOK = 1) then
- gmObject.changeHorse(3)
- else
- if gmObject.tiredHorse = 1 then
- sound(2).play(member("shoe4", 1))
- repeat while soundBusy(2)
- end repeat
- go("tiredHorse")
- end if
- end if
- end if
- end if
- go(the frame)
- end
-